package com.example.stream.demostream.service.impl;

import com.zhe.rabbit.service.MqMessageService;
import com.zhe.rabbit.to.MessageTo;
import org.springframework.stereotype.Service;

/**
 * @ClassName MessageServiceImpl
 * @Description TODO
 * @Author zhonghuaen
 * @Date 2021/10/20 22:28
 * @Version 1.0
 */
@Service
public class MessageServiceImpl implements MqMessageService {
    @Override
    public void uodateById(MessageTo messageTo) {
        if (messageTo.getMessageStatus()==4){
            //查询上次结果是否为3，如果是3则不修改，否则修改
        }
        System.out.println(messageTo.toString());
    }
}
